package com.gjs.cd.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.gjs.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * @author zhongwengaung
 * @version 1.0.0
 * @ClassName CdCodeGenerateBatch.java
 * @Description TODO
 * @createTime 2022年03月15日 22:49:00
 */
@Getter
@Setter
@ApiModel(value = "CdCodeGenerateBatch对象", description = "激活码批次表")
public class CdCodeGenerateBatch extends BaseEntity {

    @ApiModelProperty("光盘（品种）id")
    @TableField("cd_id")
    private Long cdId;

    @ApiModelProperty("有效期（年度管理）表配置ID")
    @TableField("valid_term_id")
    private Long validTermId;

    @ApiModelProperty("当前批次插入的表前缀")
    @TableField("pre_tablename")
    private String preTableName;



    @ApiModelProperty("批次名称")
    @TableField("batch_name")
    private String batchName;

    @ApiModelProperty("激活码生成目标数量")
    @TableField("target_num")
    private Integer targetNum;

    @ApiModelProperty("激活码生成实际数量")
    @TableField("real_num")
    private Integer realNum;

    @ApiModelProperty("激活码生成状态，初始值为0")
    @TableField("status")
    private Integer status = 0;

}
